class CreateFurnitureStyles < ActiveRecord::Migration
  def self.up
    create_table :furniture_styles do |t|
      t.string :code,
        :name
      t.integer :factory_id
      t.integer :stored_count,
        :ordered_count,
        :order_made_count,
        :sold_count,
        :default => 0 
      t.text :remark
      t.string :status, :default => 'visible'
      t.timestamps
    end
  end

  def self.down
    drop_table :furniture_styles
  end
end
